const mongoose = require('mongoose')
const Schema = mongoose.Schema

const ShopCartSchema = new Schema({
    skuid: {
        type: Number,
    },
    userid: {
        type: String,
    },
    jixing: {
        type: String,
    },
    color: {
        default: '',
        type: String,
    },
    version: {
        default: '',
        type: String,
    },
    imgsrc: {
        type: Array,
    },
    price: {
        type: Number,
    },
    buynumber: {
        type: Number,
    },
    date: {
        type: Date,
    },
})

let shopcartModel = mongoose.model('shopcart', ShopCartSchema)
module.exports = shopcartModel